<?php
function valida_nick($nick) { 
	if(preg_match('/^([a-z\d])+([a-z\d_-]){4,25}$/i',$nick)) 
	{ 
		return true; 
	} 
	return false; 
} 